From: kfraser@localhost.localdomain Date: Fri, 31 Aug 2007 14:43:28 +0000 (+0100) Subject: libxenctrl: xc_destroy_domain() handles EAGAIN. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~14987^2~22 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22Dat/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22Dat?a=commitdiff_plain;h=0269e41669edc4998b37a17202a0f87346ed2df7;p=xen.git libxenctrl: xc_destroy_domain() handles EAGAIN. Signed-off-by: Isaku Yamahata --- diff --git a/tools/libxc/xc_domain.c b/tools/libxc/xc_domain.c index 4c02079b6d..fdb87f0bd1 100644 --- a/tools/libxc/xc_domain.c +++ b/tools/libxc/xc_domain.c @@ -55,10 +55,14 @@ int xc_domain_unpause(int xc_handle, int xc_domain_destroy(int xc_handle, uint32_t domid) { + int ret; DECLARE_DOMCTL; domctl.cmd = XEN_DOMCTL_destroydomain; domctl.domain = (domid_t)domid; - return do_domctl(xc_handle, &domctl); + do { + ret = do_domctl(xc_handle, &domctl); + } while ( ret && (errno == EAGAIN) ); + return ret; } int xc_domain_shutdown(int xc_handle,